package com.ferrlo.web.controller;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ferrlo.common.Constant;

@Controller
public class LogoutController {
	
	@RequestMapping(value="/logout")
	public String logout(HttpServletRequest request){
		
		request.getSession().setAttribute(Constant.KEY_LOGIN_ISLOGINED, "false");

		return "index";
	}
	
	
	@RequestMapping(value="/logout.json")
	public Map<String, Object> logout_JSON(HttpServletRequest request){
		Map<String, Object> map = new HashMap<String, Object>();
		
		
		
		return map;
	}
	

}
